﻿using Microsoft.EntityFrameworkCore;
using NET6.WebAPI.Entities.User;

namespace NET6.WebAPI.Entities.Base
{
    public class ProjectDbContext : DbContext
    {
        public ProjectDbContext(DbContextOptions options) : base(options) { }

        public DbSet<Sys_User> Sys_User { get; set; }

        public DbSet<Sys_UserLog> Sys_UserLog { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            // 指定数据库 Schema
            //modelBuilder.HasDefaultSchema("dbo");

            base.OnModelCreating(modelBuilder);
        }
    }
}
